const el = document.createAttribute('div')

el.innerText = 'hihi'

document.body.append(el)

let i = 0;
while(i < 10000000) {
  i++
}